<?php
	//取出session的值
	header("content-type:text/html;charset=utf-8");
		class dog
	{
		public $name;
		public $age;
		public $weight;
	}
	session_start();
	echo "<pre>";
		var_dump($_SESSION);
		echo "</pre>";
		$dog=$_SESSION['dog'];
		echo $dog->name;
?>